package com.yami.shop.bean.model;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "融云用户注册")
@TableName("tz_melt_cloud_user_blacklist")
@Builder
public class MeltCloudUserBlacklist {
    /**
     * id
     */
    @Schema(description = "id")
    @TableId(type = IdType.AUTO)
    private Long id;


    /**
     * 用户userId
     */
    @Schema(description = "用户userId")
    @TableField(value = "user_id")
    private String userId;

    /**
     * 拉黑人userId
     */
    @Schema(description = "拉黑人userId")
    @TableField(value = "to_user_id")
    private String toUserId;

    /**
     * 0正常 1 已删除
     */
    @Schema(description = "0正常 1 已删除")
    @TableField(value = "del_flag")
    private String delflag;

    /**
     * 注册日期
     */
    @Schema(description = "注册日期")
    @TableField(value = "create_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createDate;
}
